<?php

include "HttpClient.php";

return $config = [
    'uin' => '123456',//你的QQ号
    'g_tk' => '123456',//你的g_tk值
    'cookie' => 'cookie'//你登录QQ空间之后的cookie
];

function curl_file_get_contents($durl)
{
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $durl);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // 获取数据返回
    curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); // 在启用 CURLOPT_RETURNTRANSFER 时候将获取数据返回
    $data = curl_exec($ch);
    curl_close($ch);
    return $data;
}